import 'dart:convert';
import 'package:flutter_base_plugin/flutter_base_plugin.dart';

///@description:  常用加密算法
class EncodeUtils {
  EncodeUtils._();

  /// md5 加密
  static Future<String> generateMd5(String data) async {
    var content = Utf8Encoder().convert(data);
    var digest = md5.convert(content);
    return digest.toString();
  }
}
